package com.copm.ifm.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copm.ifm.base.api.pojo.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 文件记录表
 *
 * @author tp
 * @since 2021-01-19
 */
@Getter
@Setter
@ToString
@TableName("sys_file")
@ApiModel("文件记录表")
public class SysFile extends BasePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户上传时的文件名")
    private String name;

    @ApiModelProperty("文件类型，根据文件名获取")
    private String type;

    @ApiModelProperty("上传后obs的位置，包含上传后的文件名")
    private String url;

    @ApiModelProperty("华为云obs桶名")
    private String bucket;

    @ApiModelProperty("桶中对应的objectKey")
    private String objectKey;

}
